import axios from "axios";

function getCinemaList(dispatch){
    return (dispatch) =>{
        axios({
            url:'https://m.maizuo.com/gateway?cityId=440300&ticketFlag=1&k=5422816',
            headers:{
                'X-Client-Info': '{"a":"3000","ch":"1002","v":"5.2.0","e":"165294070798642513887233"}',
                'X-Host': 'mall.film-ticket.cinema.list'
            }
        }).then(res =>{
            dispatch({
                type:"change-cinemaList",
                list:res.data.data.cinemas
            })
        })
    }
}

export default getCinemaList;